package com.wanmait.houlang.pojo;

import java.io.Serializable;

public class District implements Serializable {
    /**
	* 主键自增
	*/
    private Integer id;

    private  Integer enable;

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    /**
	* 父类id
	*/
    private Integer pid;

    /**
	* 城市的名字
	*/
    private String districtName;

    /**
	* 城市的类型，0是国，1是省，2是市，3是区
	*/
    private Integer type;

    /**
	* 地区所处的层级
	*/
    private Integer hierarchy;

    /**
	* 层级序列
	*/
    private String districtSqe;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getHierarchy() {
        return hierarchy;
    }

    public void setHierarchy(Integer hierarchy) {
        this.hierarchy = hierarchy;
    }

    public String getDistrictSqe() {
        return districtSqe;
    }

    public void setDistrictSqe(String districtSqe) {
        this.districtSqe = districtSqe;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pid=").append(pid);
        sb.append(", districtName=").append(districtName);
        sb.append(", type=").append(type);
        sb.append(", hierarchy=").append(hierarchy);
        sb.append(", districtSqe=").append(districtSqe);
        sb.append("]");
        return sb.toString();
    }
}